package com.ltu.model.request.user;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.ltu.model.request.CommonRequest;

import io.swagger.annotations.ApiModelProperty;

public class WxH5LoginReq extends CommonRequest {
	
		@ApiModelProperty(value="获取用户accesstoken的的code,与unionid二者必传1项",required = false)
	    private String unionid;
	    @ApiModelProperty(value="获取用户accesstoken的的code,与unionid二者必传1项",required = false)
	    private String wxCode;
	    @ApiModelProperty(value="公司ID必传",required = true)
	    @NotNull
	    private Integer companyId;
	    @ApiModelProperty(value="登录端：1移动端2PC端",required = false,hidden = true)
	    private  Integer type=1;	    
	    @ApiModelProperty(value="登录角色：1客户常规用户",required = true)
		@NotNull
		@Max(2)@Min(1)
	    private Integer roleType=1;
	    
	    @ApiModelProperty(value="昵称",required = true)
		private String nickName="微信用户";

	    @ApiModelProperty(value="头像",required = true)
	    private String headPhoto;
	    
	    @ApiModelProperty(value="分享人ID",required = true)
	    private Integer parentId;
	    
	
	    
	    
	    
	    
		public Integer getCompanyId() {
			return companyId;
		}

		public void setCompanyId(Integer companyId) {
			this.companyId = companyId;
		}

		public Integer getParentId() {
			return parentId;
		}

		public void setParentId(Integer parentId) {
			this.parentId = parentId;
		}

		public String getWxCode() {
			return wxCode;
		}

		public void setWxCode(String wxCode) {
			this.wxCode = wxCode;
		}

		public Integer getType() {
			return type;
		}

		public void setType(Integer type) {
			this.type = type;
		}

		public String getNickName() {
			return nickName;
		}

		public void setNickName(String nickName) {
			this.nickName = nickName;
		}

		public String getHeadPhoto() {
			return headPhoto;
		}

		public void setHeadPhoto(String headPhoto) {
			this.headPhoto = headPhoto;
		}

		public Integer getRoleType() {
			return roleType;
		}

		public void setRoleType(Integer roleType) {
			this.roleType = roleType;
		}
	    
	    
	    
	    

}
